// 通过插件实现模板路由配置
import components from '@/components'
import { createRouter, createWebHashHistory } from 'vue-router'
import {constantRoutes} from './routes.ts'
//创建路由器
let router = createRouter({
    history: createWebHashHistory(),
    routes: constantRoutes,
    scrollBehavior(){
        return {
            left:0,
            top:0
        }
    }
})
export default router
